<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      width: 100px;
      height: 100px;
      border: 1px solid #000;
    }
  </style>
</head>

<body>
  <div>3333333</div>
  <input type="text">
  <script>
    const div = document.querySelector("div")
    div.addEventListener('click', function (e) {
      div.style.backgroundColor = "red"
      div.style.color = "yellow"
      div.style.width = "300px"
      // ....

    })
    const input = document.querySelector("input")
    input.addEventListener('input', function (e) {
      console.log(input.value)
    })


  </script>
</body>

</html>